<html>
 
<head>
<title>JavaScript Demo</title>
<script type="text/javascript">

function run() {
    var c = document.getElementById("content");
    var n1 = document.createElement("p");
    var n2 = document.createElement("p");
    var n3 = document.createElement("p");
    var n4 = document.createElement("p");
    var n5 = document.createElement("p");
    n1.appendChild(document.createTextNode("33" + "22"));
    c.appendChild(n1);
    n2.appendChild(document.createTextNode("33" - "22"));
    c.appendChild(n2);
    n3.appendChild(document.createTextNode("33" * "22"));
    c.appendChild(n3);
    n4.appendChild(document.createTextNode("33" / "22"));
    c.appendChild(n4);
    n5.appendChild(document.createTextNode("33" % "22"));
    c.appendChild(n5);
}
</script>
</head>
 
<body>
<input id="b" type="button" value="RUN" onclick="run();">
<div id="content"></div>
</body>
 
</html>

